package com.wx.fresh.platform.controller;//package com.wx.fresh.product.controller;
//
//
//import com.wx.fresh.common.util.CommonResult;
//import com.wx.fresh.product.service.PlatformProductService;
//import com.wx.fresh.product.vo.BStoreProductOutVo;
//import com.wx.fresh.product.vo.BStoreProductVo;
//import com.wx.fresh.product.vo.PlatformProductVo;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiImplicitParam;
//import io.swagger.annotations.ApiImplicitParams;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
//
///**
// * @Author:srf
// * @Data: 2022/4/20
// */
//@Api(tags = "平台商品管理")
//@RestController
//@RequestMapping("platform/product")//平台商品管理
public class PlatformProductController {
//    @Autowired
//    private PlatformProductService platformProductService;
//
//    @ApiOperation(value = "店铺商品查询", response = BStoreProductOutVo.class)
//    @ApiImplicitParams({
//            @ApiImplicitParam(name="storeId",value="店铺id",required=true,paramType="form"),
//    })
//    @GetMapping("/findAll")//平台商品查询
//    public CommonResult findAll(PlatformProductVo platformProductVo) {
//        System.out.println("aaa");
//        List<BStoreProductVo> list = platformProductService.findAll(platformProductVo);
//        return null;
//    }
//
//    @ApiOperation(value = "平台商品下架")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name="storeId",value="店铺id",required=true,paramType="form"),
//            @ApiImplicitParam(name="state",value="状态",required=true,paramType="form"),
//    })
//    @PostMapping("/platUpdate")//平台商品下架
//    public CommonResult platUpdate(PlatformProductVo platformProductVo) {
//        platformProductService.platUpdate(platformProductVo);
//        return CommonResult.success(null);
//    }
//
//    @ApiOperation(value = "平台商品删除")
//    @ApiImplicitParam(name="productId",value="商品id",required=true,paramType="form" )
//    @PostMapping("/delete")//平台商品删除
//    public CommonResult delete(PlatformProductVo platformProductVo) {
//        platformProductService.delete();
//        return null;
//    }
//
//    @GetMapping("/findById")//平台商品详情
//    public CommonResult findById(PlatformProductVo platformProductVo) {
//        return null;
//    }
}
